<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<table cellspacing="0" cellpadding="0" border="0" width="100%">
	<tr>
		<td></td>
		<td><strong>Email</strong></td>
		<td><strong>Username</strong></td>
	</tr>
<?php
if (empty($this->invitationUserList)) {
	echo "<tr>受邀者列表为空</tr>";
	
} else {
	foreach ($this->invitationUserList as $ulid => $user) {
		echo "<tr>";
		echo "<td><a href=".$this->url(array('controller'=>'invitation', 'action'=>'deleteuserlist', 'id'=>$this->invitation->id, 'ulid'=>$ulid)).">Delete</a></td>";
		echo "<td>".$user->email."</td>";
		echo "<td>".$user->username."</td>";
		echo "</tr>";
	}
}
?>
</table>

<?php
echo $this->form;
?>
<a href="<?php echo $this->url(array('controller'=>'invitation','action'=>'adduserlist','id'=>$this->invitation->id));?>">添加受邀者</a>